
 /**
 * SysException.java.java.
 * User: BrianChen Date: 2012-5-22 下午05:51:29
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.exception;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-5-22 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-5-22 下午05:51:29
 * @version 1.0
 * @see
 * 
 */
@SuppressWarnings("serial")
public class SysException extends BaseException{
	/**
     * Creates new <code>SysException</code> without detail message.
     */
    public SysException(){
    	super();
        super.setErrorKey("error.base.sys");
        super.setMessage("系统错误！请稍候登录！");
    }
    /**
     * Constructs an <code>SysException</code> with the specified detail message and nested Exception.
     *
     * @param nested the nested Exception.
     */
    public SysException(Throwable nested){
       super(nested);
       super.setErrorKey("error.base.sys");
       super.setMessage("系统错误！请稍候登录！");
    }
    /**
     * Constructs an <code>SysException</code> with the specified detail message.
     *
     * @param msg the detail message.
     */
    public SysException(String msg){
        super(msg);
        super.setErrorKey("error.base.sys");
    }
    /**
     * Constructs an <code>SysException</code> with the specified detail message,errorKey.
     *
     * @param errorKey the message key.
     * @param msg the detail message.
     */
    public SysException(String errorKey, String msg){
        super(errorKey, msg);
    }
    /**
     * Constructs an <code>SysException</code> with the specified detail message and nested Exception.
     *
     * @param msg the detail message.
     * @param nested the specified nested Exception.
     */
    public SysException(String msg, Throwable nested){
       super(msg, nested);
       super.setErrorKey("error.base.sys");
    }
    /**
     * Constructs an <code>AppException</code> with the specified detail message,errorKey and nested Exception.
     * 
     * @param errorKey the message key.
     * @param msg the detail message.
     * @param nested the specified nested Exception.
     */
    public SysException(String errorKey, String msg, Throwable nested){
       super(errorKey, msg, nested);
    }
}

